﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NFit.Core.Fixtures;

namespace NFit.Gallio.Test.Sample
{
    public class ActionFixtureImpl : ActionFixture
    {
        private bool pressed;
        private int? entered;

        public void MyPressTest()
        {
            pressed = true;
        }

        public void MyEnterTest(int testInt)
        {
            entered = testInt;
        }

        public int MyCheckTest()
        {
            if (pressed && entered.HasValue)
            {
                return entered.Value;
            }
            return -1;
        }
    }
}
